<template>
  <div>
    <el-card class="elcard">
      <el-row type="flex" justify="space-around" :gutter="50">
        <el-col :span="5">
          <el-card shadow="hover" class="elcard1">
            <router-link tag="div" to="/home/users">用户列表</router-link>
          </el-card>
        </el-col>
        <el-col :span="5">
          <el-card shadow="hover">
            <router-link tag="div" to="/home/authority"
              >角色权限列表</router-link
            ></el-card
          >
        </el-col>
        <el-col :span="5">
          <el-card shadow="hover">
            <router-link tag="div" to="/home/goods">商品分类</router-link>
          </el-card>
        </el-col>
        <el-col :span="5">
          <el-card shadow="hover">
            <router-link tag="div" to="/home/goodslist">商品列表</router-link>
          </el-card>
        </el-col>
      </el-row>
      <br />
      <br />
      <br />
      <el-row type="flex" justify="space-around" :gutter="50">
        <el-col :span="10">
          <el-card shadow="hover">
            <router-link tag="div" to="/home/order">订单管理</router-link>
          </el-card>
        </el-col>
        <el-col :span="10">
          <el-card shadow="hover">
            <router-link tag="div" to="/home/sort">数据报表</router-link>
          </el-card>
        </el-col>
      </el-row>
    </el-card>
  </div>
</template>

<script>
export default {
  created() {
    console.log(this.$store.getters.getUserInfoName);
  },
};
</script>

<style lang="scss" scoped>
.el-card {
  text-align: center;
}
.elcard {
  min-height: 700px;
}
.el-row {
  margin-top: 130px;
}
</style>

<style lang="scss">
.el-header {
  background-color: #ffffff;
  width: 100%;
  box-shadow: 5px 2px 2px #888888;
}
.showtag {
  height: 100%;
  width: 50px;
  position: relative;
  // text-align: center;
  transform: translateX(-38%);

  .svg1 {
    height: 15px;
    width: 15px;
    margin: auto;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    position: absolute;
  }
  .svg1:hover {
    color: #3191ff;
  }
}
.el-divider {
  background-color: pink;
  transform: translateY(-50%);
  box-shadow: 5px 2px 2px #888888;
}
.el-header2 {
  transform: translateY(5%);
  width: 90%;
  display: flex;
  align-items: center;
}
.el-header1 {
  width: 100%;
  box-shadow: 5px 1px 10px #888888;
}
.el-header {
  width: 100%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.12), 0 0 6px rgba(0, 0, 0, 0.04);
}
</style>
